<?php
// HTTP
define('HTTP_SERVER', 'http://99xu.net/');
define('HTTP_IMAGE', 'http://99xu.net/image/');

// HTTPS
define('HTTPS_SERVER', '');
define('HTTPS_IMAGE', '');

//////////////

define('DIR_APPLICATION', '/home/xuvn/public_html/catalog/');
define('DIR_SYSTEM', '/home/xuvn/public_html/system/');
define('DIR_DATABASE', '/home/xuvn/public_html/system/database/');
define('DIR_LANGUAGE', '/home/xuvn/public_html/catalog/language/');
function isMobile() {
    return preg_match("/(android|avantgo|blackberry|bolt|boost|cricket|docomo|fone|hiptop|mini|mobi|palm|phone|pie|tablet|up\.browser|up\.link|webos|wos)/i", $_SERVER["HTTP_USER_AGENT"]);
}
// If the user is on a mobile device, redirect them
if(isMobile()) {
	define('DIR_TEMPLATE', '/home/xuvn/public_html/catalog/view/theme/mobile/');
} else {
	define('DIR_TEMPLATE', '/home/xuvn/public_html/catalog/view/theme/');
};
//define('DIR_TEMPLATE', '/home/xuvn/public_html/catalog/view/theme/');
define('DIR_CONFIG', '/home/xuvn/public_html/system/config/');
define('DIR_IMAGE', '/home/xuvn/public_html/image/');
define('DIR_CACHE', '/home/xuvn/public_html/system/cache/');
define('DIR_DOWNLOAD', '/home/xuvn/public_html/download/');
define('DIR_LOGS', '/home/xuvn/public_html/system/logs/');

// DB
define('DB_DRIVER', 'mysql');
define('DB_HOSTNAME', 'localhost');
define('DB_USERNAME', 'xuvn_99xu');
define('DB_PASSWORD', 'uX6NAMed');
define('DB_DATABASE', 'xuvn_99xu');
define('DB_PREFIX', '');
?>